package com.black.apartment.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.black.apartment.mapper.ApartmentAttributesMapper;
import com.black.apartment.domain.ApartmentAttributes;
import com.black.apartment.service.IApartmentAttributesService;

/**
 * 公寓属性信息Service业务层处理
 * 
 * @author kuan
 * @date 2024-10-08
 */
@Service
public class ApartmentAttributesServiceImpl implements IApartmentAttributesService 
{
    @Autowired
    private ApartmentAttributesMapper apartmentAttributesMapper;

    /**
     * 查询公寓属性信息
     * 
     * @param attributeId 公寓属性信息主键
     * @return 公寓属性信息
     */
    @Override
    public ApartmentAttributes selectApartmentAttributesByAttributeId(Long attributeId)
    {
        return apartmentAttributesMapper.selectApartmentAttributesByAttributeId(attributeId);
    }

    /**
     * 查询公寓属性信息列表
     * 
     * @param apartmentAttributes 公寓属性信息
     * @return 公寓属性信息
     */
    @Override
    public List<ApartmentAttributes> selectApartmentAttributesList(ApartmentAttributes apartmentAttributes)
    {
        return apartmentAttributesMapper.selectApartmentAttributesList(apartmentAttributes);
    }

    /**
     * 新增公寓属性信息
     * 
     * @param apartmentAttributes 公寓属性信息
     * @return 结果
     */
    @Override
    public int insertApartmentAttributes(ApartmentAttributes apartmentAttributes)
    {
        return apartmentAttributesMapper.insertApartmentAttributes(apartmentAttributes);
    }

    /**
     * 修改公寓属性信息
     * 
     * @param apartmentAttributes 公寓属性信息
     * @return 结果
     */
    @Override
    public int updateApartmentAttributes(ApartmentAttributes apartmentAttributes)
    {
        return apartmentAttributesMapper.updateApartmentAttributes(apartmentAttributes);
    }

    /**
     * 批量删除公寓属性信息
     * 
     * @param attributeIds 需要删除的公寓属性信息主键
     * @return 结果
     */
    @Override
    public int deleteApartmentAttributesByAttributeIds(Long[] attributeIds)
    {
        return apartmentAttributesMapper.deleteApartmentAttributesByAttributeIds(attributeIds);
    }

    /**
     * 删除公寓属性信息信息
     * 
     * @param attributeId 公寓属性信息主键
     * @return 结果
     */
    @Override
    public int deleteApartmentAttributesByAttributeId(Long attributeId)
    {
        return apartmentAttributesMapper.deleteApartmentAttributesByAttributeId(attributeId);
    }
}
